package com.doxiaopu.students.mapper;

import com.doxiaopu.students.product.mapper.SingleMapper;
import com.doxiaopu.students.product.vo.AdminSingleParameterVO;
import com.doxiaopu.students.product.vo.SingleVO;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

import java.util.List;

@SpringBootTest
public class SingleMapperTestCase {
    @Autowired
    private SingleMapper singleMapper;

    @Test
    public void selectSingleList(){
        AdminSingleParameterVO adminSingleParameterVO = new AdminSingleParameterVO();
        List<SingleVO> singleVO = singleMapper.findSingleList(adminSingleParameterVO);
        System.err.print(singleVO);
//        List<MerchantListVO> data = merchantMapper.findMerchants(phone,1,10);
//        System.err.print("data:"+data);
    }
    @Test
    public void selectSingle(){
        String flagid = "12e3e3bc-dcb9-4dc5-b90d-ed122ddf7edd";
        SingleVO singleVO = singleMapper.findSingleById(flagid);
        System.err.print(singleVO);
//        List<MerchantListVO> data = merchantMapper.findMerchants(phone,1,10);
//        System.err.print("data:"+data);
    }
}
